package ar.edu.caece.compiler.grammar.nonterminals;

import ar.edu.caece.compiler.grammar.NonTerminalSymbol;
import ar.edu.caece.compiler.grammar.terminals.FinArrayToken;
import ar.edu.caece.compiler.grammar.terminals.InicioArrayToken;

public class ARRAYE extends NonTerminalSymbol implements ARRAY {

	private InicioArrayToken inicioArrayToken;
	private EXPR expr;
	private FinArrayToken finArrayToken;
	
	public ARRAYE(InicioArrayToken inicioArrayToken, EXPR expr,
			FinArrayToken finArrayToken) {
		super();
		this.inicioArrayToken = inicioArrayToken;
		this.expr = expr;
		this.finArrayToken = finArrayToken;
	}

	@Override
	public String getRepresentation() {
		// TODO Auto-generated method stub
				return "{"+this.getClass().getSimpleName()+" -> "+inicioArrayToken.getRepresentation()+" "+expr.getRepresentation()+" "+finArrayToken.getRepresentation()+"}";
	}

	public InicioArrayToken getInicioArrayToken() {
		return inicioArrayToken;
	}

	public EXPR getExpr() {
		return expr;
	}

	public FinArrayToken getFinArrayToken() {
		return finArrayToken;
	}

}
